import request from '@/utils/request'
import defaultSettings from '@/settings'

//小额预对账--主页查询
export const bepsPreReconciliationQuery = {
    queryUrl: `${defaultSettings.ctx.cnapsApp}/transactionManage/dayEndProcess/cnapsPreReconciliationQuery/PreReconciliationBepsQuery/search`,
}
//小额预对账--明细Table查询
export const detailsApiUrlConfig = {
  queryUrl: `${defaultSettings.ctx.cnapsApp}/transactionManage/dayEndProcess/cnapsPreReconciliationQuery/PreReconciliationBepsQuery/queryListOritxnTable`,
}

//小额预对账--明细查询
export function detail(data) {
    return request({
        url: `${defaultSettings.ctx.cnapsApp}/transactionManage/dayEndProcess/cnapsPreReconciliationQuery/PreReconciliationBepsQuery/detail?id=${data.id}`,
        method: 'get',
    })
}

//小额预对账--内部明细查询
export function innerDetail(data) {
  return request({
      url: `${defaultSettings.ctx.cnapsApp}/transactionManage/dayEndProcess/cnapsPreReconciliationQuery/PreReconciliationBepsQuery/queryOritxn?id=${data.id}`,
      method: 'get',
  })
}


// 小额预对账--手工校对
export function manualCheck(data) {
  return request({
      url: `${defaultSettings.ctx.cnapsApp}/transactionManage/dayEndProcess/cnapsPreReconciliationQuery/PreReconciliationBepsQuery/manualCheck`,
      method: 'post',
      data,
  })
}


// 小额预对账--手工对账
export function ManualReconciliation(data) {
    return request({
        url: `${defaultSettings.ctx.cnapsApp}/transactionManage/dayEndProcess/cnapsPreReconciliationQuery/PreReconciliationBepsQuery/ManualReconciliation`,
        method: 'post',
        data,
    })
}

// 小额预对账--查看原交易详情
export function queryOriTxn(params) {
  return request({
      url: `${defaultSettings.ctx.cnapsApp}/transactionManage/dayEndProcess/cnapsPreReconciliationQuery/PreReconciliationBepsQuery/queryListOritxn`,
      method: 'get',
      params,
  })
}